package com.letv.core.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 乐视直播频道数据定义
 * 
 * @author ljnalex 2014-10-28
 */
public class LiveBeanStreamList implements LetvBaseBean {
    private static final long serialVersionUID = 6865122073702675274L;

    private List<LiveBeanStream> list = new ArrayList<LiveBeanStream>();

    public List<LiveBeanStream> getList() {
        return list;
    }

    public void setList(List<LiveBeanStream> list) {
        this.list = list;
    }
    
    public void add(LiveBeanStream bean){
        if(list != null){
            list.add(bean);
        }
    }

    /**
     * 乐视直播频道数据定义
     * 
     * @author ljnalex 2014-10-28
     */
    public static class LiveBeanStream implements LetvBaseBean {
        private static final long serialVersionUID = 1L;

        /**
         * 流ID
         */
        private long streamId;

        /**
         * 流名称
         */
        private String streamName;

        /**
         * 码率类型，参考《码率类型词典编码》
         */
        private String rateType;

        /**
         * 直播流播放地址
         */
        private String streamUrl;

        public long getStreamId() {
            return streamId;
        }

        public void setStreamId(long streamId) {
            this.streamId = streamId;
        }

        public String getStreamName() {
            return streamName;
        }

        public void setStreamName(String streamName) {
            this.streamName = streamName;
        }

        public String getRateType() {
            return rateType;
        }

        public void setRateType(String rateType) {
            this.rateType = rateType;
        }

        public String getStreamUrl() {
            return streamUrl;
        }

        public void setStreamUrl(String streamUrl) {
            this.streamUrl = streamUrl;
        }
    }
}
